<div class="form-compile">
<div class="model" style="display:none">
${model}
</div>
    <form class="layui-form" lay-filter="edit-form">
        <input type="hidden" name="typeId"  />
        <div class="layui-form-item">
            <label class="layui-form-label required">类型名</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="typeName" lay-verify="required" placeholder="请输入类型名">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">类型编码</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="typeCode" lay-verify="required" placeholder="请输入类型编码" >
            </div>
        </div>
        
        <div class="layui-form-item">
            <label class="layui-form-label required">排序</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="sort"  placeholder="请输入排序" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">状态</label>
            <div class="layui-input-inline">
            	<select id="dataStatus" name="status" lay-verify="required"></select>
            </div>
        </div>
        
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" name="remark"></textarea>
            </div>
        </div>
        <div class="layui-form-item form-finally">
            <button type="button" class="layui-btn" lay-submit="" lay-filter="type-edit" id="typeEditSave" >保存</button>
            <button type="button" class="layui-btn" onclick="closePopup()">关闭</button>
        </div>
    </form>
</div>
<script>
$("#dataStatus").initSelectDict();
initFormData();
$("#typeEditSave").formSubmit({
	url: ctx+"/sys/dictType/edit"
});
</script>
